// component/home/sidebar/sidebar.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    // 跳转方法
    navToRankList() {
      wx.navigateTo({
        url: '/pages/rank/rank',
        success: (result) => {},
        fail: (res) => {},
        complete: (res) => {},
      })
    },
    navToAct() {
      this.triggerEvent('showActDialog', {val: true})
    },
    navToStore() {
      wx.navigateTo({
        url: '/pages/user/store/index/index',
        success: (result) => {},
        fail: (res) => {},
        complete: (res) => {},
      })
    },
    navToUser() {
      wx.navigateTo({
        url: '/pages/user/index/index',
      })
    }
    
  }
})
